/**
 * Copyright(c) by JNet Smartware Group.
 * All rights reserved. Not distribution or redistribution without
 * any permission of JNet Smartware Group.
 * 
 * @author thuc
 * 2010/03/15
 */
package vn.smartware.co.server.dao.factory;

import java.sql.Connection;

import vn.smartware.co.dto.MstCustomerDTO;
import vn.smartware.co.framework.bean.LoginDTO;
import vn.smartware.co.framework.exception.ServerException;


/**
 * AbstractRegisterCustomerDAO
 * @author thuctt
 */
public abstract class AbstractRegisterCustomerDAO {

	/**
	 * registerCustomer
	 * @param customer
	 * @param user
	 * @param conn
	 * @return String
	 * @throws ServerException
	 */
	abstract public String registerCustomer(MstCustomerDTO customer,
			LoginDTO user, Connection conn) throws ServerException;

	/**
	 * updateCustomer
	 * @param customer
	 * @param user
	 * @param conn
	 * @throws ServerException
	 */
	abstract public void updateCustomer(MstCustomerDTO customer, LoginDTO user,
			Connection conn) throws ServerException;

	/**
	 * deleteCustomer
	 * @param customer
	 * @param user
	 * @param conn
	 * @throws ServerException
	 */
	abstract public void deleteCustomer(MstCustomerDTO customer, LoginDTO user,
			Connection conn) throws ServerException;
}
